<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ include file="../general/header.jsp" %>
	<h3>Pedidos de solicitud</h3>
	<div class="featurebox_center" id="search">
		<div class="clear"></div>
		<c:choose>
			<c:when test="${empty requests}">
				No tienes pedidos de solicitud.
			</c:when>
			<c:otherwise>
				<table class="listas">
					<tbody>
						<c:forEach var="request" items="${requests}">
							<tr>
								<td> <a href="../user/viewProfile?userid=${request.id}"><c:out value="${request.requester.name}" /> <c:out value="${request.requester.lastName}" /></a></td>
								<td class="center"> <a href="../user/AcceptRequest?id=${request.id}"><img src="../../img/confirm.png" class="edit"></a></td>
								<td class="center"> <a href="../user/DenyRequest?id=${request.id}"><img src="../../img/delete.png" class="edit"></a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:otherwise>
		</c:choose>
	</div>
					
<%@ include file="../general/footer.jsp" %>

